<!-- 统计管理 -->
<div data-ng-controller="MainCtrl">
    <div class="row">
        <div class="col-lg-3 col-md-6 col-xs-12">
            <rd-widget>
                <rd-widget-body>
                    <div class="widget-icon green pull-left">
                        <i class="fa fa-users"></i>
                    </div>
                    <div class="title">{{statisticsDailyData["keyUserCount"]}}</div>
                    <div class="comment">已注册</div>
                </rd-widget-body>
            </rd-widget>
        </div>
        <div class="col-lg-3 col-md-6 col-xs-12">
            <rd-widget>
                <rd-widget-body>
                    <div class="widget-icon red pull-left">
                        <i class="fa fa-user-plus"></i>
                    </div>
                    <div class="title">{{statisticsDailyData["keyUserIncrease"]}}</div>
                    <div class="comment">昨日增长量</div>
                </rd-widget-body>
            </rd-widget>
        </div>
        <div class="col-lg-3 col-md-6 col-xs-12">
            <rd-widget>
                <rd-widget-body>
                    <div class="widget-icon orange pull-left">
                        <i class="fa fa-sitemap"></i>
                    </div>
                    <div class="title">{{statisticsDailyData["keyPushLinkCount"]}}</div>
                    <div class="comment">推送总量</div>
                </rd-widget-body>
            </rd-widget>
        </div>
        <div class="col-lg-3 col-md-6 col-xs-12">
            <rd-widget>
                <rd-widget-body>
                    <div class="widget-icon blue pull-left">
                        <i class="fa fa-support"></i>
                    </div>
                    <div class="title">{{statisticsDailyData["keyVisitorCount"]}}</div>
                    <div class="comment">今日访问量</div>
                </rd-widget-body>
            </rd-widget>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-6">
            <rd-widget>
                <rd-widget-header icon="fa-tasks" title="推送排行">
                    <a ng-click="createPushLink()">推送</a>
                </rd-widget-header>
                <rd-widget-body classes="medium no-padding">
                    <div class="table-responsive">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>
                                    <nobr>排名</nobr>
                                </th>
                                <th>
                                    <nobr>点击数</nobr>
                                </th>
                                <th>
                                    <nobr>标题</nobr>
                                </th>
                                <th>
                                    <nobr>链接地址</nobr>
                                </th>
                                <th>
                                    <nobr>推送者</nobr>
                                </th>
                                <th></th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="pushLink in pushLinkRanking" ng-click="clickPushLink(pushLink)">
                                <td class="text-center">{{$index+1}}</td>
                                <td>{{pushLink.clickCount}}</td>
                                <td>
                                    <nobr>{{pushLink.title}}</nobr>
                                </td>
                                <td>
                                    <nobr>{{pushLink.url}}</nobr>
                                </td>
                                <td>{{pushLink.creator}}</td>
                                <td><span class="text-success"><i class="fa fa-fire"></i></span></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </rd-widget-body>
            </rd-widget>
        </div>
        <div class="col-lg-6">
            <rd-widget>
                <rd-widget-header icon="fa-users" title="财富排行">
                    <input type="text" placeholder="Search" class="form-control input-sm"/>
                </rd-widget-header>
                <rd-widget-body classes="medium no-padding">
                    <div class="table-responsive">
                        <table class="table">
                            <thead>
                            <tr>
                                <th class="text-center">排名</th>
                                <th>账号</th>
                                <th>昵称</th>
                                <th>财富</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="cr in coinRanking">
                                <td class="text-center">{{$index+1}}</td>
                                <td>{{cr.identityId}}</td>
                                <td>{{cr.nickname}}</td>
                                <td>{{cr.coin}}</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </rd-widget-body>
                <rd-widget>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-6">
            <rd-widget>
                <rd-widget-header icon="fa-plus" title="资讯">
                    <!--<button class="btn btn-sm btn-info">Button</button>-->
                </rd-widget-header>
                <rd-widget-body>
                    <div class="message" ng-repeat="notification in notifications"
                         ng-click="setNotification(notification)">
                        {{getTime(notification.createTime) | date:"yyyy/MM/dd"}}&nbsp;&nbsp;{{notification.title}}
                        <hr/>
                    </div>
                </rd-widget-body>
            </rd-widget>
        </div>
        <div class="col-lg-6">
            <rd-widget>
                <rd-widget-header icon="fa-cog fa-spin" title="{{notification!=null?notification.title:'暂无'}}">
                </rd-widget-header>
                <rd-widget-body>
                    {{notification.content}}
                    <marquee behavior="alternate">
                        <img width="240px" height="180px" style="margin: 15px" ng-repeat="image in notification.images"
                             src="/resources/{{image.path}}"/>
                    </marquee>
                </rd-widget-body>
            </rd-widget>
        </div>
    </div>
</div>